<template>
	<view class="details">

		<view class="content">
			<p>考试时间：{{ detailsData.emtm }}</p>
			
			<p>主办单位：{{ detailsData.ogze }}</p>
			
			<p>考试名称：{{ detailsData.name }}</p>
			
			<p>考试期数：{{ detailsData.podl }}</p>
			
			<p>报名上限：{{ detailsData.tplt }}</p>
			
			<p>证书名称：{{ detailsData.ccnm }}</p>
			
			<p>考试费：{{ detailsData.cost }}</p>
			
			<p>报名开始：{{ detailsData.star }}</p>
			
			<p>报名截止：{{ detailsData.ddle }}</p>
			
			<p>准考证时间：{{ detailsData.attm }}</p>
			
			<p>成绩时间：{{ detailsData.gdtm }}</p>
			
			<p>考试描述：</p>
			<div v-html="detailsData.dsib"></div>
			
			<p>毕业证样本：</p>
			<u-image width="100%" height="300rpx" :src="detailsData.dmsp"></u-image>
			
			<p>考纲说明：</p>
			<u-image width="100%" height="300rpx" :src="detailsData.epan"></u-image>
		</view>
		<wyb-loading ref="loading" />
	</view>
</template>

<script>
	import {getExam} from "@/api/apiList/exam.js"
	export default {
		data() {
			return {
				detailsData: "",
				loading: false,
			}
		},
		methods:{
			back(){
				uni.navigateBack()
			},
			async API_getExam(id){
				let result = {
					param:{
						id
					}
				}
				return await getExam(result)
			}
		},
		async onLoad(option) {
			this.$refs.loading.showLoading()
			let res = await this.API_getExam(option.id)
			if(res.data.code === 1000){
				this.detailsData = res.data.data
			}
			this.$refs.loading.hideLoading()
		},
		// created() {
		// 	this.detailsData = JSON.parse(this.$store.state.details.row);
		// }
	}
</script>

<style lang="scss" scoped>
	.details .content{
		padding: 0 20rpx;
		box-sizing: border-box;

		p {
			font-size: 40rpx;
			margin: 20rpx 0;
		}
	}
</style>
